<%@page import="com.system.dao.UserDao"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../common.jsp" %>
<%
	UserDao dao = new UserDao();
	List<Map<String,Object>> list = dao.getCheckPrivildegeUsers();
	pageContext.setAttribute("list", list);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'userEdit.jsp' starting page</title>
  </head>
  
  <script type="text/javascript">
    
    	function doGetId(){
    		return $("#approve_user").val();
    	}
    	
    	function doGetName(){
    		return $("#approve_user").find("option:selected").text();
    	}
    	
    	function doGetNotes(){
    		return $.trim($("#remarks").val());
    	}
    
    	function doCheck(){
    	
	    	if($("#approve_user").val()==''){
	    		alert("请选择审核人");
    			return false;
	    	}
    		
    		if($.trim($("#remarks").val()) == ""){
    			alert("备注不能为空");
    			return false;
    		}
    		return true;
    	}
    </script>
  
  <body>
   <form id="winForm" name="winForm">
  		<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
	  		<tr>
				<td valign="top" align="left">	
					<div title="出库" style="padding:10px;">
						<table>
							<tr height="40px" valign="bottom">
								<td width="200" valign="middle" align="right" height="30">
									提交人：<input type="text" name="name" id="name" class="textbox" readonly="readonly" value="${currentUserName}" style="color: blue;"/>
								</td>
								<td  width="200" valign="middle" align="right" height="30">
									<font color="#FF0000">*</font>审核人：<select name="approve_user_id" id="approve_user">
																			<option value="">---请选择审核人---</option>
																			<c:forEach items="${list}" var="obj">
																				<option value="${obj.id}">${obj.name }</option>
																			</c:forEach>
																		</select>
								</td>
							</tr>
							<tr>
								<td valign="middle" colspan="2" align="right">
									<font color="#FF0000">*</font>备注:<textarea id="remarks" rows="" cols="" style="width:330;height:50"></textarea>
								</td>
							</tr>
							<tr height="25px" valign="bottom">
								<td colspan="2">
									<img src="${path}/images/tip.png" border="0" width="20px" height="15px" />
									<font color="green" style="font-size: 11px">温馨提示：请选择审核人，备注不能为空！</font>
								</td>
							</tr>
						</table>
					</div>
				</td>
			</tr>
  		</table>
	</form>
  </body>
</html>
